<!DOCTYPE html>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:url var="loginUrl" value='j_spring_security_check' />
<html lang="es">
    <head>
        <meta content="text/html; charset=utf-8" />
        <meta charset="UTF-8" />
        <meta description="Generador de HTML" />
        <base href="http://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}/" />
        <link rel="icon" type="image/x-icon" href="./images/favicon.ico"/>
        <title>Login Page</title>
    </head>
    <body onload='document.f.j_username.focus();'>
        ${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}

        <form name='f' action="<c:url value='j_spring_security_check' />" method='POST'>
            <fieldset>
                <div>
                    <label>Usuario:</label>
                    <input type="text" name="j_username" />
                </div>
                <div>
                    <label>Clave:</label>
                    <input type="password" name="j_password" />
                </div>
                <div>
                    <input type="submit" value="Ingresar" name="commit" />
                    <input type="reset" value="Limpiar" name="cancel" />
                </div>
            </fieldset>

        </form>
    </body>
</html>